﻿// Decompiled with JetBrains decompiler
// Type: NetickEditor.NetworkAnimatorEditor
// Assembly: Netick.Unity.Editor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 0658BB4A-05C4-428D-9BD6-82E94959F5A1
// Assembly location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Editor\Netick.Unity.Editor.dll

using Netick.Unity;
using UnityEditor;
using UnityEngine;

#nullable disable
namespace NetickEditor;

[CustomEditor(typeof (NetworkAnimator))]
public class NetworkAnimatorEditor : Editor
{
  private const string SettingsTooltip = "Replication settings.";
  private const string InterpolationModeTooltip = "Choose the source of the interpolation data.";
  private SerializedProperty SettingProperty;
  private SerializedProperty InterpolationModeProperty;

  private void OnEnable()
  {
    this.SettingProperty = this.serializedObject.FindProperty("Settings");
    this.InterpolationModeProperty = this.serializedObject.FindProperty("_interpolationSource");
  }

  public virtual void OnInspectorGUI()
  {
    EditorGUI.BeginDisabledGroup(Application.isPlaying);
    NetickEditorProperty.DrawProperty(this.serializedObject.targetObject, this.SettingProperty, "Replication settings.");
    EditorGUI.EndDisabledGroup();
    NetickEditorProperty.DrawProperty(this.serializedObject.targetObject, this.InterpolationModeProperty, "Choose the source of the interpolation data.");
    this.serializedObject.ApplyModifiedProperties();
  }
}
